package com.aaa.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 退费主表
 * </p>
 *
 * @author pzs
 * @since 2023-03-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("his_order_backfee")
public class OrderBackfee implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 退费ID
     */
      private String backId;

    /**
     * 总费用
     */
    private BigDecimal backAmount;

    /**
     * 病历ID
     */
    private String chId;

    /**
     * 挂号单
     */
    private String regId;

    /**
     * 患者名称
     */
    private String patientName;

    /**
     * 订单状态0未退费  1 退费成功 2退费失败  字典表his_backfee_status
     */
    private String backStatus;

    /**
     * 退费类型0现金1支付宝  字典表his_pay_type_status
     */
    private String backType;

    /**
     * 关联订单ID his_order_charge  
     */
    private String orderId;

    /**
     * 退费交易ID
     */
    private String backPlatformId;

    /**
     * 退费交易时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")

    private LocalDateTime backTime;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")

    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime updateTime;

    /**
     * 创建者
     */
    private String createBy;

    /**
     * 更新者
     */
    private String updateBy;


    public OrderBackfee(String backId, BigDecimal backAmount, String chId, String regId,
                        String patientName, String backStatus, String backType, String orderId,String backPlatformId,
                        LocalDateTime backTime, LocalDateTime createTime) {
        this.backId = backId;
        this.backAmount = backAmount;
        this.chId = chId;
        this.regId = regId;
        this.patientName = patientName;
        this.backStatus = backStatus;
        this.backType = backType;
        this.orderId = orderId;
        this.backPlatformId=backPlatformId;
        this.backTime = backTime;
        this.createTime = createTime;

    }
}
